package game;

import java.awt.Point;

/**
 * <p>A {@code GameType} denoting that no game is currently open.</p>
 * 
 * <p>This implementation is intended as a placeholder, so its methods 
 * do the least amount of work possible.</p>
 * 
 * @author Mark Kelly
 * @version 3.0
 * @since Chess 3.0 
 */
public class NoGame extends GameType {

	/**
	 * {@inheritDoc}
	 */
	@Override
	public boolean hasWon(Team team) {
		return false;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public boolean movePiece(Point start, Point dest) {
		return false;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public void pieceMoved(Piece p, ChessBoard b) {
	}
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	public void setupBoard() {
		state.setBoard(new ChessBoard());
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public boolean isValidMove(Piece piece, Point point) {
		return false;
	}
}
